package vorlesung1110

object Ex8 {
  def main(args : Array[String]) : Unit = {
    printFunction( ((x:Double) => x * x), 1,2,3)
  }
  
  def printFunction(f: Double => Double, values:Double*) = {
    for(x <- values)
      println(f(x) + " ")
      println
  }
  
}
